import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '预约',
    editBtn: false,
    delBtn: false,
    viewBtn: true,
    searchLabelWidth: 120,
    column: [
      {
        label: '洗舱站名称',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '船舶名称',
        prop: 'p2',
        search: true,
        overHidden: true,
      },
      {
        label: '船舶联系人',
        prop: 'p3',
        overHidden: true,
        hide: true
      },
      {
        label: '联系电话',
        prop: 'p4',
        overHidden: true,
        hide: true
      },
      {
        label: '预约结果',
        prop: 'p5',
        search: true,
        dicData: [
          {label: '同意', value: '1'},
          {label: '拒绝', value: '2'},
          {label: '待确认', value: '3'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
        addDisplay: false,
      },
    ]
  }
}
